package qky.api.service;

import qky.common.utils.PageUtils;
import qky.api.entity.UserEntity;

import java.util.Map;
import java.util.List;

/**
 * 用户
 *
 * @author qky
 * @email qky_coding_man@gmail.com
 * @date 2022-01-16 17:23:48
 */
public interface UserService {

    //===============代码生成区===============//

    PageUtils queryPage(Map<String, Object> params);

    UserEntity query(String id);

    List<UserEntity> queryList(Map<String, Object> params);

    Boolean save(UserEntity entity);

    Boolean saveBatch(List<UserEntity> list);

    Boolean update(UserEntity entity);

    Boolean updateBatch(List<UserEntity> list);

    Boolean delete(List<String> id);

    //===============代码生成区===============//

    UserEntity getByMobile(String mobile);

    Map<String, Object> login(String mobile, String password);

    void register(UserEntity user, String company);
}

